package test;

import sagroup.dracots.DracoTS;
import sagroup.dracots.DracoTuple;
import sagroup.dracots.ShareTuple;
import sagroup.dracots.TupleType;

public class RdAgent implements Runnable {
	public void run() {
		DracoTS dts = DracoTS.get("testing");
		ShareTuple st = ShareTuple.createTypeTemplate(new TupleType("type"));
		DracoTuple ret = dts.rd(st);
		if (ret != null) {
			System.out.println("RdAgent has read tuple with vid: "
					+ ret.getVID());
		}
		System.out.println("RdAgent finished!");
	}
}
